package com.meishij.server;

import com.meishij.entry.ShiHua_Datail_Entry;
import com.meishij.entry.ShihuaEntry;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2016/10/12.
 * 我是youngKaka 我的心愿是世界和平
 */

public interface ShiHuaServer {
    @GET("/v5/meishiquan_index5.php?format=json")
    Call<ShihuaEntry> getShihuaEntry(@Query("sort") String sort);

    @POST("/v5/topic.php?format=json")
    @FormUrlEncoded
    Call<ShiHua_Datail_Entry> getShiHuaTopicEntry(@Field("filter") String filter
            , @Field("gid") String gid, @Field("source") String source, @Field("tid") String tid
            , @Field("page") String page, @Field("json") String josn);

    @POST("/v5/hot_topic_more3.php?format=json")
    @FormUrlEncoded
    Call<ShihuaEntry> getHotTopicEntry(@Field("page") int page);
}
